package com.bw.lib_common.utils

import android.content.Context
import com.bw.lib_common.base.BaseApplication
import com.bw.lib_log.LoggerStrategy
import com.bw.lib_log.logger.Logger

object LoggerUtils {
    private val logger = Logger.Builder()
        .setTAG("_club_")
        .setStrategy(LoggerStrategy.LOG_CAT) //输出策略，只需要改这里，日志输出改变
        .setDebug(true)
        .setSaveUrl(BaseApplication.instance.getDir("logger",Context.MODE_PRIVATE).path)
        .build()
    @JvmStatic
    fun d(tag:String,log:String){
        logger.d(tag,log)
    }
}